<div id="graph_wrapper">
	<div id="graph_container">
	<p>
	<?php if($this->graph!=null){?>
	<img id="graph" src="<?php echo "data:image/png;base64,$this->graph"; $this->graph; ?>" />
	<?php }?>
	<div id="dataForTable">
	<?php if($this->dataForTable!=null) {
		$number_value = count($this->dataForTable->getSerie()->values); 
		if($number_value==12){ 
	?> 
	<table id="TABELLA" width="300" height="50" border="1" align="center">
    <thead>
    <tr>
       <td>Data</td>
       <td><?php echo $this->dataForTable->getSerie()->label." [".$this->dataForTable->getSerie()->unit."]"?></td>
    </tr>
    </thead>
    <?php for ($i=0; $i<$number_value; $i++){ ?>
   	<tr>
      <td><?php echo $this->dataForTable->getXAxis()->values[$i];?></td>
      <td><?php echo $this->dataForTable->getSerie()->values[$i]; }?></td>
   </tr> 
    </table>
   <?php } else { ?>
   <div align=center>
   <div style="width:300px;height:970px;overflow-y: scroll; border:1px solid black;" >
   <table id="TABELLA" width="300" height="50" border="1" align="center">
   <thead>
   <tr>
   <td>Data</td>
   <td><?php echo $this->dataForTable->getSerie()->label." [".$this->dataForTable->getSerie()->unit."]"?></td>
       </tr>
       </thead>
       <?php for ($i=0; $i<$number_value; $i++){ ?>
      	<tr>
         <td><?php echo $this->dataForTable->getXAxis()->values[$i];?></td>
         <td><?php echo $this->dataForTable->getSerie()->values[$i]; }?></td>
      </tr> 
      
      </table>
      </div>
      </div>
   <?php }}?>
	</div>
	<div id="dataForIndex">
		<?php if($this->dataForIndex!=null){ ?>
		<h4>
		<table id="TABELLA" width="300" height="100" border="1" align="center">
		<tr>
      	<td>Ep<sub>e</sub></td>
      	<td><?php echo $this->dataForIndex->getEpe(); ?></td>
      	<td>kWh/m&sup2</td>
      	</tr>
      	<tr>
      	<td>Ep<sub>i</sub></td>
      	<td><?php echo $this->dataForIndex->getEpi(); ?></td>
      	<td>kWh/m&sup2</td>
   		</tr> 
   		</table>
   		</h4>
   		<img src="/images/classi.png" WIDTH="300" HEIGHT="250">
   	<?php }?>
    </div>
	</div>
</div>






